//
//  SeasonViewController.m
//  MyFairLady
//
//  Created by dlios on 15-5-21.
//  Copyright (c) 2015年 蓝鸥. All rights reserved.
//

#import "SeasonViewController.h"

@interface SeasonViewController ()

@end

@implementation SeasonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
 
    UITableView *SeasonTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, 375, 667 - 64) style:UITableViewStylePlain];
    SeasonTableView.delegate = self;
    SeasonTableView.dataSource = self;
    [self.view addSubview:SeasonTableView];
    [SeasonTableView release];
    
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *str = @"cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:str];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:str];
    }
    if (indexPath.row == 0) {
        cell.textLabel.text = @"春天";
        cell.detailTextLabel.text = @"产于3-5月的食物";
        UIImage *spimage = [UIImage imageNamed:@"spring"];
        cell.imageView.image = spimage;
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
    
    return cell;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 4;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
